{extend name="base"/}
{block name="title"}
    搜索
{/block}
{block name="css"}
<link rel="stylesheet" href="__MOBILE__/css/wangStyle.css"/>
<style>
    body{
        background: #fff;
    }
    .head{
        border-bottom: 1px solid #e2e2e2;
    }
    .w_store_product{
        padding-top: 0.15rem;
    }
</style>
{/block}
{block name="content"}
<div class="head">
    <div class="head_left"><a href="{:url('/langjinmobile/home/index')}"><img  src="__MOBILE__/images/true.png" alt=""></a></div>
    <div class="head_con">搜索</div>
    <div class="head_right"></div>
</div>
<div class="w_topsearch">
        <input type="text" name="good_name" id='good_name' value="{$good_name}" placeholder="请输入商品名称">
        <div class="search1">
            <a href="javascript:void(0) ;"><img  src="__MOBILE__/images/icon_search.png" onclick="sub()"></a>
        </div>
</div>
<div class="w_store_product">
    {if $count >0}
    <ul class="clearfix flow-default">
        {volist name='goods_list' id='vo'}
        <li>
            <a href="{:url('/langjinmobile/card/goodsdata',['good_id'=>$vo.id])}">
                <img src="{$vo.img1}">
                <p class="w_text">{$vo.name}</p>
                <p class="w_money">￥{$vo.wallet_num}+{$vo.integral_num}GMOD</p>
            </a>
        </li>
        {/volist}
    </ul>
    {else/}
    <p id="add" class="addmore" style="text-align: center;">暂无记录</p>
    {/if}
</div>
{/block}
{block name="js"}
<script>
    function sub(){
        var good_name =$("#good_name").val();
        window.location.href = '/langjinmobile/home/search/good_name/'+good_name;
    }
</script>
{/block}